package com.br.unisal.library.operations;

import com.br.unisal.library.controller.Controller;
import com.br.unisal.library.controller.LendingController;
import com.br.unisal.library.controller.LoginController;
import com.br.unisal.library.exception.InvalidUserLoginData;
import com.br.unisal.library.operations.settings.OperationType;
import com.br.unisal.library.view.graphic.LibraryMainView;


/**
 * Main class to those supported operations.
 */
public class LibraryOperationsImpl implements LibraryOperations {
	@Override
	public LendingController lend() {
		return new LendingController();
	}

	@Override
	public Controller giveBack(String bookID) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Controller search() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Controller register() {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public LoginController login(String user, String password,
            LibraryMainView libraryMainView) throws InvalidUserLoginData {
            return new LoginController(OperationType.LOGIN, user, password, libraryMainView);
	}

}
